package com.zqj.spring_mybatis.userInfo.mapper;

import com.zqj.spring_mybatis.userInfo.pojo.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;


import java.util.List;
@Component
@Mapper
public interface UserInfoMapper {

    //获取用户名单
    public List<UserInfo> getUser() throws Exception;
    //根据id删除用户
    public void deleteUser(int id)throws Exception;
    //新增用户
    public void addUser(UserInfo user)throws Exception;
}
